package com.second.hand.trading.server.service;

import com.second.hand.trading.server.model.SalesmanModel;
import com.second.hand.trading.server.vo.PageVo;

public interface SalesmanService {

    /**
     * 获取某个用户的公开信息
     * @param id
     * @return
     */
    SalesmanModel getSalesman(Long id);

    /**
     * 登录接口
     * @param accountNumber
     * @param salesmanPassword
     * @return
     */
    SalesmanModel salesmanLogin(String accountNumber, String salesmanPassword);

    /**
     * 注册接口
     * @param salesmanModel
     * @return
     */
    boolean salesmanSignIn(SalesmanModel salesmanModel);

    /**
     * 更新用户信息
     * @param salesmanModel
     * @return
     */
    boolean updateSalesmanInfo(SalesmanModel salesmanModel);

    /**
     * 修改密码
     * @param newPassword
     * @param oldPassword
     * @param id
     * @return
     */
    boolean updatePassword(String newPassword, String oldPassword,Long id);

    PageVo<SalesmanModel> getUserByStatus(int status, int page , int nums);

    PageVo<SalesmanModel> getAllSalesman(int page , int nums);
}
